package cn.edu.cug.cs.gtl.docsrv.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GreetingController {

    @GetMapping(value = "/api/demo/greeting")
    public String greeting(
            @RequestParam(value = "name", defaultValue = "World") String name){
        return "Hello "+name;
    }

}
